package com.bianguo.android.tencentpushdemo.view.activity;

import android.os.Bundle;
import android.os.Handler;
import android.support.v4.widget.NestedScrollView;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.bianguo.android.tencentpushdemo.R;
import com.bianguo.android.tencentpushdemo.adapters.CommentAdapter;
import com.bianguo.android.tencentpushdemo.adapters.CommentListAdapter;
import com.bianguo.android.tencentpushdemo.utils.MyLog;
import com.bianguo.android.tencentpushdemo.view.widget.MNestedScrollView;
import com.bianguo.android.tencentpushdemo.view.widget.NestedWebView;

import java.util.ArrayList;

import butterknife.BindView;
import butterknife.OnClick;

public class NewsActivity extends BaseActivity {

    @BindView(R.id.news_web)
    WebView newsWeb;

    public final String NEWS_DETAIL_BASE_URL = "http://demo.bianguo.com.cn/zhuzhenyu/scnews/index.php/Home/Index/news?Nid=8";
    private WebSettings webSettings;
    private ArrayList<String> comments;
    private CommentAdapter commentAdapter;

    @Override
    public int layoutId() {
        return R.layout.activity_news;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        newsWeb.loadUrl(NEWS_DETAIL_BASE_URL);
    }

    @Override
    public void initData() {

    }

    @OnClick({R.id.news_finish})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.news_finish:
                onBackPressed();
                break;
        }
    }
}
